package pers.kw.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

public class PageDto<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "第几页", allowableValues = "range[1, +∞]", required = true, example = "1")
    private Integer pageNum;
    @ApiModelProperty(value = "每页大小", allowableValues = "range[1, +∞]", required = true, example = "10")
    private Integer pageSize;
    private Long total;
    private Long pages;
    private List<T> list;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getPages() {
        return pages;
    }

    public void setPages(Long pages) {
        this.pages = pages;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
